﻿using Core.IBusiness.IPushModule;
using Core.IBusiness.IPushModule.Model;
using Core.IBusiness.ISocketModule;
using System;

namespace Core.Business.PushModule
{
    /// <summary>
    /// 用户关系
    /// </summary>
    public class Relationship : IRelationshipPush
    {

        Utils utils;

        public Relationship(IQueue queue)
        {
            utils = new Utils(queue);
        }


        public void ApplyFriend(ApplyFriendModel applyFriend) => utils.PublishHelper(applyFriend);

        public void ApplyFriendAgree(ApplyFriendAgreeModel applyFriendAgree) => utils.PublishHelper(applyFriendAgree);

        public void ApplyFriendRefuse(ApplyFriendRefuseModel applyFriendRefuse) => utils.PublishHelper(applyFriendRefuse);

        public void ApplyGroup(ApplyGroupModel applyGroup) => utils.PublishHelper(applyGroup);

        public void ApplyGroupAgree(ApplyGroupAgreeModel applyGroupAgree) => utils.PublishHelper(applyGroupAgree);

        public void ApplyGroupRefuse(ApplyGroupRefuseModel applyGroupRefuse) => utils.PublishHelper(applyGroupRefuse);

        public void GroupDissolution(GroupDissolutionModel groupDissolution) => utils.PublishHelper(groupDissolution);
    }
}
